<!-- google_ad_section_start(weight=ignore) -->
<div id="right_col">
  <?php $options = get_option('mc_options'); ?>

  <?php if ($options['show_information']) : ?>
  <div id="information_area" class="clearfix">
   <div class="side_box" id="information">
    <h3><?php if($options['information_title']) { echo ($options['information_title']); } else { _e('Information','monochrome'); } ?></h3>
    <div id="information_contents"><?php if($options['information_contents']) { echo ($options['information_contents']); } else { _e('Change this sentence and title from admin Theme option page.','monochrome'); } ?></div>
   </div>
  </div>
  <?php endif; ?>

  <?php if($options['search_position'] == 'top') { ?>
  <div class="side_box" id="search_area_top">
   <div id="search_area" class="clearfix">
    <form action="http://xfeng.me/cse/" method="get" id="searchform">
	<div>
		<input type="hidden" name="cx" value="partner-pub-8044246668905491:8819030128" id="search_input" />
		<input type="hidden" name="cof" value="FORID:11" id="search_input" />
		<input type="hidden" name="ie" value="UTF-8" id="search_input" />
		<input type="text" name="q" value="Google Custom Search" size="23" id="search_input" onblur="if (this.value == '') {this.value = 'Google Custom Search';}" onfocus="if (this.value =='Google Custom Search') {this.value = '';}" />
	</div>
     <div><input type="image" src="<?php bloginfo('template_url'); ?>/img/search_button.gif" name="sa" alt="<?php _e('Search from this blog.','monochrome'); ?>" title="<?php _e('Search from this blog.','monochrome'); ?>" id="search_button" onClick="_gaq.push(['_setCustomVar', 2, 'Visitor-Type', 'Searcher', 2],['_trackEvent', 'InSiteSearch', 'Search', 'CSE']);" /></div>
    </form>
   </div>
   <?php if ($options['tag_list']) : ?>
   <div id="tag_list" class="clearfix">
    <a href="javascript:void(0);" class="search_tag"><?php _e('TAG LIST','monochrome'); ?></a>
    <?php wp_tag_cloud('smallest=11&largest=11&number=30&orderby=count&unit=px&format=list'); ?>
   </div>
   <?php endif; ?>
  </div>
  <?php } ?>

<div class="side_box" id="text-6">
	<div class="textwidget">
		<a href="http://fusion.google.com/add?feedurl=http://feeds.feedburner.com/JoysBoy" onClick="_gaq.push(['_trackEvent', 'OutgoLink', 'Subscribe', 'Feedburner to GR'],['_setCustomVar', 2, 'Visitor-Type', 'Subscribers', 2]);" target="_blank" title="订阅到Google Reader"><img src="http://xfeng.me/wp-content/uploads/images/icons/feed/google2.gif" border="0" width="100" title="订阅到Google Reader"/></a><a href="http://www.zhuaxia.com/add_channel.php?url=http://feeds.feedburner.com/JoysBoy" onClick="_gaq.push(['_trackEvent', 'OutgoLink', 'Subscribe', 'Feedburner to Zhuaxia'],['_setCustomVar', 2, 'Visitor-Type', 'Subscribers', 2]);" target="_blank" title="订阅到抓虾"><img src="http://xfeng.me/wp-content/uploads/images/icons/feed/zhuaxia2.gif" border="0" width="100" title="订阅到抓虾"/></a></br>
		<a href="http://www.xianguo.com/subscribe.php?url=http://feeds.feedburner.com/JoysBoy" onClick="_gaq.push(['_trackEvent', 'OutgoLink', 'Subscribe', 'Feedburner to Xianguo'],['_setCustomVar', 2, 'Visitor-Type', 'Subscribers', 2]);" target="_blank" title="订阅到鲜果"><img src="http://xfeng.me/wp-content/uploads/images/icons/feed/xianguo2.gif" border="0" width="100" title="订阅到鲜果"/></a><a href="http://mail.qq.com/cgi-bin/feed?u=http://feeds.feedburner.com/JoysBoy" onClick="_gaq.push(['_trackEvent', 'OutgoLink', 'Subscribe', 'Feedburner to QQmail'],['_setCustomVar', 2, 'Visitor-Type', 'Subscribers', 2]);" target="_blank" title="订阅到QQ阅读空间"><img src="http://xfeng.me/wp-content/uploads/images/icons/feed/qq2.gif" border="0" width="100" title="订阅到QQ阅读空间"/></a></br>
		<a href="http://9.douban.com/reader/subscribe?url=http://feeds.feedburner.com/JoysBoy" onClick="_gaq.push(['_trackEvent', 'OutgoLink', 'Subscribe', 'Feedburner to Douban'],['_setCustomVar', 2, 'Visitor-Type', 'Subscribers', 2]);" target="_blank" title="订阅到豆瓣九点"><img src="http://xfeng.me/wp-content/uploads/images/icons/feed/douban2.gif" border="0" width="100" title="订阅到豆瓣九点"/></a><a href="http://reader.youdao.com/b.do?url=http://feeds.feedburner.com/JoysBoy" onClick="_gaq.push(['_trackEvent', 'OutgoLink', 'Subscribe', 'Feedburner to youdao'],['_setCustomVar', 2, 'Visitor-Type', 'Subscribers', 2]);" target="_blank" title="订阅到有道"><img src="http://xfeng.me/wp-content/uploads/images/icons/feed/yodao2.gif" border="0" width="100" title="订阅到有道"/></a></br>
		<a href="http://xfeng.me/rss-feed/" title="小峰网络傲游记RSS" ><img src="http://xfeng.me/wp-content/uploads/images/icons/rssfeed.png" border="0" /></a>
		<div align="center"><a title="手机扫描二维码访问移动版"><img src="http://xfeng.me/wp-content/uploads/images/qrcode.png" alt="手机扫描二维码访问移动版" border="0" width="120" height="120" /></a></div>
		</div>
	</div>

  <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>

   <div class="side_box">
   <h3><?php _e('Recent entry','monochrome'); ?></h3>
    <ul>
<?php $myposts = get_posts('numberposts=5'); foreach($myposts as $post) : ?>
     <li class="side_date"><?php the_time('Y-m-d') ?></li>
     <li><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></li>
<?php endforeach; ?>
   </ul>
  </div>

   <div class="side_box">
   <h3><?php _e('Archive','monochrome'); ?></h3>
   <ul>
    <?php wp_get_archives('type=monthly'); ?>
   </ul>
   </div>

   <div class="side_box">
   <h3><?php _e('Category','monochrome'); ?></h3>
   <ul>
    <?php wp_list_categories('orderby=name'); ?>
   </ul>
   </div>

<?php endif; ?>

  <?php if($options['search_position'] == 'bottom') { ?>
  <div class="side_box" id="search_area_bottom">
  <h3><?php _e('SEARCH','monochrome'); ?></h3>
   <div id="search_area" class="clearfix">
    <?php if ($options['use_google_search']) : ?>
        <form action="http://xfeng.me/cse/" method="get" id="searchform">
	<div>
		<input type="hidden" value="013106221626760561513:hzadi_u-tbg" name="cx" id="search_input" />
		<input type="hidden" name="cof" value="FORID:11" id="search_input" />
		<input type="hidden" name="ie" value="UTF-8" id="search_input" />
		<input type="text" name="q" size="23" id="search_input" />
	</div>
     <div><input type="image" src="<?php bloginfo('template_url'); ?>/img/search_button.gif" name="sa" alt="<?php _e('Search from this blog.','monochrome'); ?>" title="<?php _e('Search from this blog.','monochrome'); ?>" onClick="_gaq.push(['_trackEvent', 'InSiteSearch', 'CSE']);" id="search_button" />
     </div>
    </form>
    <?php else: ?>
    <form method="get" id="searchform" action="<?php bloginfo('url'); ?>/">
     <div><input type="text" value="<?php _e('Search','monochrome'); ?>" name="s" id="search_input" onfocus="this.value=''; changefc('white');" /></div>
     <div><input type="image" src="<?php bloginfo('template_url'); ?>/img/search_button.gif" alt="<?php _e('Search from this blog.','monochrome'); ?>" title="<?php _e('Search from this blog.','monochrome'); ?>" id="search_button" /></div>
    </form>
    <?php endif; ?>
   </div>
   <?php if ($options['tag_list']) : ?>
   <div id="tag_list" class="clearfix">
    <a href="javascript:void(0);" class="search_tag"><?php _e('TAG LIST','monochrome'); ?></a>
    <?php wp_tag_cloud('smallest=11&largest=11&number=30&orderby=count&unit=px&format=list'); ?>
   </div>
   <?php endif; ?>
  </div>
  <?php } ?>
<div class="side_box" id="text-3">
	<h3>Blog Support</h3>
	<a href="http://wordpress.org/" onClick="_gaq.push(['_trackEvent', 'OutgoLink', 'Goto Page', 'WordPress']);" target=_blank title="WordPress强力驱动"><img src="http://xfeng.me/wp-content/uploads/images/icons/support/wp.png" alt="WordPress强力驱动" /></a><a href="http://nginx.org/" onClick="_gaq.push(['_trackEvent', 'OutgoLink', 'Goto Page', 'Nginx']);" target=_blank title="Nginx Support"><img src="http://xfeng.me/wp-content/uploads/images/icons/support/nginx.png" alt="Nginx Support" /></a></br>
	<a href="http://php.net/" onClick="_gaq.push(['_trackEvent', 'OutgoLink', 'Goto Page', 'PHP']);" target=_blank title="PHP Powered"><img src="http://xfeng.me/wp-content/uploads/images/icons/support/button-php.gif" alt="PHP Powered" /></a><a href="http://www.mysql.com/" onClick="_gaq.push(['_trackEvent', 'OutgoLink', 'Goto Page', 'MySQL']);" target=_blank title="MySQL Powered"><img src="http://xfeng.me/wp-content/uploads/images/icons/support/mysql-powered.png" alt="MySQL Powered" /></a></br>
	<a title="珍爱生命，远离IE"><img src="http://xfeng.me/wp-content/uploads/images/icons/support/noie.png" alt="珍爱生命，远离IE" /></a><a href="http://creativecommons.org/licenses/by-nc-sa/3.0/" onClick="_gaq.push(['_trackEvent', 'OutgoLink', 'Goto Page', 'creativecommons']);" target=_blank title="署名-非商业性使用-相同方式共享"><img src="http://xfeng.me/wp-content/uploads/images/icons/support/cc-by-nc-sa.png" alt="署名-非商业性使用-相同方式共享" /></a></br>
	<a href="http://www.diahosting.com/client/aff.php?aff=892" onClick="_gaq.push(['_trackEvent', 'OutgoLink', 'Goto Page', 'DiaHosting']);" target=_blank title="DiaHosting"><img src="http://xfeng.me/wp-content/uploads/images/icons/support/diavps.png" alt="DiaHosting" width="165"/></a>
</div>
</div><!-- #right_col end -->
